<?php

require_once './include/common.inc.php';

getMyParam('nid');

if (!is_numeric($nid) || $nid <= 0) {
    header("Location:news.php");
    exit;
}

$page_title = 'jans2en furniture - News - News';
$menu_id = 7;

$photo_category_ary = array();
$sql = "SELECT * FROM `news` WHERE `id` = $nid";
$news_details_ary = $db->get_one($sql);

$on = date("d/M/Y", $news_details_ary['online']);
$off = date("d/M/Y", $news_details_ary['offline']);

$news_photo = "";
if (!empty($news_details_ary['pic'])) {
    $news_photo = '<img src="./zh/attachments/' . $news_details_ary['pic'] . '" width="130" height="130" class="picture">';
}

require_once PrintEot('news_details');

?>